package io.renren.config;

/**
 * @author: xiaomi
 * @date: 2022/1/27
 * @description: 业务上的一些配置
 */
public class BizConfig {

    /**
     * 资源路径前缀
     */
    public static final String PATH_PRE = "http://192.168.56.1/resource";

    /**
     * 资源路径前缀（相对）
     */
    public static final String PATH_RESOURCE_RELATIVE_PRE = "resource";

    /**
     * 分页搜索时的关键词属性
     */
    public static final String SEARCH_KEY = "key";

    /**
     * 微信小程序高亮前缀
     */
    public static final String WX_HIGHLIGHT_LABEL_PRE = "<view class=\"hl\">";
    /**
     * 微信小程序高亮后缀
     */
    public static final String WX_HIGHLIGHT_LABEL_POST = "</view>";


    /**
     * MARKDOWN 文件接收的标志（后缀）
     */
    public static final String MD_FILE_ACCEPTED_LABEL = ".md";

    /**
     * 计算机专业词汇的标志
     */
    public static final String COMPUTER_VOCABULARY_LABEL = "cv";

    /**
     * 背单词的日期格式
     */
    public static final String RECITE_TIME_FORMAT = "yyyyMMdd";

    /**
     * 正则表达式：匹配释义的格式：使用 1. 2. 3. 进行分割
     */
    public static final String REGEX_EXPLANATION_SPLIT = "[1|2|3|4|5|6|7|8|9]\\.";


    //region 名称

    public static final String TASK_NAME_TOKENIZER = "tokenizerTask";

    public static final String POOL_FFMPEG = "ffmpegPool";

    /**
     * 时间轮
     */
    public static final String POOL_TIME_WHEEL = "timeWheelPool";

    public static final String IMPL_TOKENIZER_INDEX = "indexTokenizerService";

    public static final String IMPL_IK_ANALYZER_SMART = "ikSmartAnalyzer";

    public static final String IMPL_IK_ANALYZER_NOT_SMART = "ikNotSmartAnalyzer";

    public static final String IMPL_STRANGE_EB = "strangeEBService";

    public static final String IMPL_ACQUAINTANCE_EB = "acquaintanceEBService";

    public static final String IMPL_FAMILIAR_EB = "familiarEBService";

    public static final String IMPL_THOROUGHLY_FAMILIAR_EB = "thoroughlyFamiliarEBService";

    //endregion

    //region bean
    public static final String NETTY_TIME_WHEEL = "timerWheel";

    public static final String COS_CLOUD = "cosCloud";
    //endregion


    //region 缓存

    public static final String CACHE_SPECIAL_SUBJECT_ENTITY = "specialSubject::entity";

    public static final String CACHE_FORMWORK_ENTITY = "formwork::entity";

    public static final String CACHE_REFERENCE_MATERIAL_ENTITY = "referenceMaterial::entity";

    //endregion
}
